docs: Clean up dangling links in gdk docs
authorMatthias Clasen <mclasen@redhat.com>
Wed, 5 Aug 2020 19:42:27 +0000 (15:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 5 Aug 2020 19:45:43 +0000 (15:45 -0400)
Clean up references to no-longer-existing APIs.

21 files changed:
docs/reference/gdk/gdk4-docs.xml
docs/reference/gdk/gdk4-sections.txt
gdk/gdk.c
gdk/gdkcontentformats.c
gdk/gdkdevicepad.c
gdk/gdkdisplay.c
gdk/gdkdisplaymanager.c
gdk/gdkdrag.c
gdk/gdkdrop.c
gdk/gdkevents.c
gdk/gdkevents.h
gdk/gdkframeclock.c
gdk/gdkpaintable.c
gdk/gdkpopuplayout.c
gdk/gdksurface.c
gdk/wayland/gdkdisplay-wayland.c
gdk/win32/gdkdisplay-win32.c
gdk/x11/gdkcursor-x11.c
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkmonitor-x11.c
gdk/x11/gdkselection-x11.c

index a7291c3ffdfccac005fb31930e2efe620c55b30c..3e1ed5f974b778f8d0ce52f6869ed08ae754e7c7 100644 (file)
@@ -33,6 +33,7 @@
     <xi:include href="xml/gdksurface.xml" />
     <xi:include href="xml/gdktoplevel.xml" />
     <xi:include href="xml/gdktoplevellayout.xml" />
+    <xi:include href="xml/gdktoplevelsize.xml" />
     <xi:include href="xml/gdkpopup.xml" />
     <xi:include href="xml/gdkpopuplayout.xml" />
     <xi:include href="xml/gdkframeclock.xml" />
index 5cff88eb657bf0950bd79986361b93ac7f4a4bda..c08651d9e648e7fdfa76bf126384b8a71a6f9c69 100644 (file)
@@ -345,7 +345,6 @@ GdkAxisUse
 GdkAxisFlags
 GdkDeviceTool
 GdkDeviceToolType
-GdkDeviceType
 
 <SUBSECTION>
 gdk_device_get_name
@@ -684,6 +683,8 @@ gdk_toplevel_get_type
 <TITLE>Textures</TITLE>
 <FILE>textures</FILE>
 GdkTexture
+GdkMemoryTexture
+GdkGLTexture
 gdk_texture_new_for_pixbuf
 gdk_texture_new_from_resource
 gdk_texture_new_from_file
@@ -847,6 +848,8 @@ gdk_x11_surface_move_to_desktop
 gdk_x11_surface_get_desktop
 gdk_x11_surface_set_utf8_property
 gdk_x11_surface_set_frame_sync_enabled
+gdk_x11_surface_set_group
+gdk_x11_surface_get_group
 gdk_x11_keymap_get_group_for_state
 gdk_x11_keymap_key_is_modifier
 gdk_x11_visual_get_xvisual
@@ -1290,4 +1293,3 @@ GDK_CONTENT_DESERIALIZER
 GDK_IS_CONTENT_DESERIALIZER
 gdk_content_deserializer_get_type
 </SECTION>
-
index c874d15260149ca45346396b7b165b50bf26df0c..ae3194bb595d192a41247bbbd62121055944bd8f 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -319,9 +319,8 @@ gdk_pre_parse (void)
  *
  * Opens the default display specified by command line arguments or
  * environment variables, sets it as the default display, and returns
- * it. gdk_parse_args() must have been called first. If the default
- * display has previously been set, simply returns that. An internal
- * function that should not be used by applications.
+ * it. If the default display has previously been set, simply returns
+ * that. An internal function that should not be used by applications.
  *
  * Returns: (nullable) (transfer none): the default display, if it
  *   could be opened, otherwise %NULL.
index ec0ac5387605f123283143f16ae4cb44ac907389..e677e68808ead24a3267260144f1b41ec585a198 100644 (file)
@@ -20,7 +20,7 @@
  * @Title: Content Formats
  * @Short_description: Advertising and negotiating of content
  *     exchange formats
- * @See_also: #GdkDragContext, #GdkClipboard, #GdkContentProvider
+ * @See_also: #GdkDrag, #GdkDrop, #GdkClipboard, #GdkContentProvider
  *
  * This section describes the #GdkContentFormats structure that is used to
  * advertise and negotiate the format of content passed between different
index 05b620a52b14ff7ef42cd7e71f9df629f2b620c8..7e108e9c9785f2c14a2b74245d8ba118d21fc4d1 100644 (file)
  * and gdk_device_pad_get_feature_group() can be combined to find out the
  * number of buttons/rings/strips the device has, and how are they grouped.
  *
- * Each of those groups have different modes, which may be used to map
- * each individual pad feature to multiple actions. Only one mode is
- * effective (current) for each given group, different groups may have
- * different current modes. The number of available modes in a group can
- * be found out through gdk_device_pad_get_group_n_modes(), and the current
- * mode for a given group will be notified through the #GdkEventPadGroupMode
- * event.
- *
+ * Each of those groups have different modes, which may be used to map each
+ * individual pad feature to multiple actions. Only one mode is effective
+ * (current) for each given group, different groups may have different
+ * current modes. The number of available modes in a group can be found
+ * out through gdk_device_pad_get_group_n_modes(), and the current mode for
+ * a given group will be notified through events of type #GDK_PAD_GROUP_MODE.
  */
 
 /**
index c353c9de50a17e28aa645e00dac41bb2a76c65e4..d4944cdc589430adf4c1f3818c3755e1c704e29d 100644 (file)
@@ -54,7 +54,7 @@
  * gdk_display_get_default_seat() and gdk_display_list_seats().
  *
  * Output devices are represented by #GdkMonitor objects, which can be accessed
- * with gdk_display_get_monitor() and similar APIs.
+ * with gdk_display_get_monitor_at_surface() and similar APIs.
  */
 
 /**
@@ -957,9 +957,9 @@ gdk_display_beep (GdkDisplay *display)
  * Flushes any requests queued for the windowing system and waits until all
  * requests have been handled. This is often used for making sure that the
  * display is synchronized with the current state of the program. Calling
- * gdk_display_sync() before gdk_error_trap_pop() makes sure that any errors
- * generated from earlier requests are handled before the error trap is
- * removed.
+ * gdk_display_sync() before gdk_x11_display_error_trap_pop() makes sure
+ * that any errors generated from earlier requests are handled before the
+ * error trap is removed.
  *
  * This is most useful for X11. On windowing systems where requests are
  * handled synchronously, this function will do nothing.
@@ -1320,9 +1320,6 @@ gdk_display_set_composited (GdkDisplay *display,
  * provide appropriate display. Use gdk_display_is_composited()
  * to check if that is the case.
  *
- * For setting an overall opacity for a top-level surface, see
- * gdk_surface_set_opacity().
- *
  * On modern displays, this value is always %TRUE.
  *
  * Returns: %TRUE if surfaces are created with an alpha channel or
index bfd5bb8b3c08427cb9588e01aefd9da807edb303..0635645123251760997c6f3cee79d3faa716bd06 100644 (file)
@@ -296,9 +296,7 @@ static GdkBackend gdk_backends[] = {
  * with multiple backends). Applications can use gdk_set_allowed_backends()
  * to limit what backends can be used.
  *
- * Returns: (transfer none): The global #GdkDisplayManager singleton;
- *     gdk_parse_args(), gdk_init(), or gdk_init_check() must have
- *     been called first.
+ * Returns: (transfer none): The global #GdkDisplayManager singleton
  **/
 GdkDisplayManager*
 gdk_display_manager_get (void)
index 01314f9602b4b55d7cbcd14d29c48051e666e820..2870d346d684eff1e2f9d5a93bd6d4c70aa1c735 100644 (file)
@@ -105,7 +105,7 @@ G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GdkDrag, gdk_drag, G_TYPE_OBJECT)
  * Possible drop sites get informed about the status of the ongoing drag operation
  * with events of type %GDK_DRAG_ENTER, %GDK_DRAG_LEAVE, %GDK_DRAG_MOTION and
  * %GDK_DROP_START. The #GdkDrop object can be obtained from these #GdkEvents
- * using gdk_event_get_drop().
+ * using gdk_dnd_event_get_drop().
  *
  * The actual data transfer is initiated from the target side via an async
  * read, using one of the GdkDrop functions for this purpose: gdk_drop_read_async()
index f5b85c1993a9d3002591b027cf79bbc3931dd1f4..8b2a8b33af7ec578c9f4065abb233eb602d35913 100644 (file)
@@ -482,7 +482,7 @@ gdk_drop_get_surface (GdkDrop *self)
  * returns %FALSE for the result - gdk_drop_finish() must choose
  * the action to use when accepting the drop. This will only
  * happen if you passed %GDK_ACTION_ASK as one of the possible
- * actions in gdk_drag_status(). %GDK_ACTION_ASK itself will not
+ * actions in gdk_drop_status(). %GDK_ACTION_ASK itself will not
  * be included in the actions returned by this function.
  *
  * This value may change over the lifetime of the #GdkDrop both
index 147c47e11b47cd7e9e66636e509b8a8d3e27f66b..c6ee0decb806aa2f6594d03beeaede3e0c937d77 100644 (file)
@@ -945,9 +945,9 @@ gdk_event_get_axis (GdkEvent   *event,
  * gdk_event_triggers_context_menu:
  * @event: a #GdkEvent, currently only button events are meaningful values
  *
- * This function returns whether a #GdkEventButton should trigger a
- * context menu, according to platform conventions. The right mouse
- * button always triggers context menus.
+ * This function returns whether a #GdkEvent should trigger a
+ * context menu, according to platform conventions. The right
+ * mouse button always triggers context menus.
  *
  * This function should always be used instead of simply checking for
  * event->button == %GDK_BUTTON_SECONDARY.
index 0d4888cb6dbfca57ecf35822d1560fb2ddeb7770..3e8dff15dbac20f676e6bfd4d233c945c50c1980 100644 (file)
@@ -252,7 +252,7 @@ typedef enum
  * @GDK_SCROLL_LEFT: the surface is scrolled to the left.
  * @GDK_SCROLL_RIGHT: the surface is scrolled to the right.
  * @GDK_SCROLL_SMOOTH: the scrolling is determined by the delta values
- *   in scroll events. See gdk_event_get_scroll_deltas()
+ *   in scroll events. See gdk_scroll_event_get_deltas()
  *
  * Specifies the direction for scroll events.
  */
index cd10511545aee39786bec8f07f45f33532d097d6..612a3c07adb11d288f076618313d84a8aa70a3c1 100644 (file)
@@ -208,8 +208,8 @@ gdk_frame_clock_class_init (GdkFrameClockClass *klass)
    * This signal is emitted as the third step of toolkit and
    * application processing of the frame. The frame is
    * repainted. GDK normally handles this internally and
-   * produces expose events, which are turned into GTK
-   * #GtkWidget::draw signals.
+   * emits #GdkSurface::render which are turned into
+   * #GtkWidget::snapshot signals by GTK.
    */
   signals[PAINT] =
     g_signal_new (g_intern_static_string ("paint"),
index 56b13bcd95fa7cb27a68e43059897c75363b81d4..1397bbe707be461a01d367e150c3dd39f6256d8b 100644 (file)
@@ -56,11 +56,11 @@ void            gtk_snapshot_pop                        (GdkSnapshot
  * A #GdkPaintable may change its contents, meaning that it will now produce a
  * different output with the same snpashot. Once that happens, it will call
  * gdk_paintable_invalidate_contents() which will emit the
- * #GdkPaintable::invalidate-contents signal.  
- * If a paintable is known to never change its contents, it will set the
- * %GDK_PAINTABLE_STATIC_CONTENTS flag. If a consumer cannot deal with changing
- * contents, it may call gdk_paintable_get_static_image() which will return a
- * static paintable and use that.
+ * #GdkPaintable::invalidate-contents signal. If a paintable is known to never
+ * change its contents, it will set the %GDK_PAINTABLE_STATIC_CONTENTS flag.
+ * If a consumer cannot deal with changing contents, it may call
+ * gdk_paintable_get_current_image() which will return a static paintable and
+ * use that.
  *
  * A paintable can report an intrinsic (or preferred) size or aspect ratio it
  * wishes to be rendered at, though it doesn't have to. Consumers of the interface
index 25f16c5e8a0e0eec0f67420b8669478979e95250..e22017045d7cbb4aae5f8b28b814484fce70812a 100644 (file)
@@ -55,13 +55,12 @@ G_DEFINE_BOXED_TYPE (GdkPopupLayout, gdk_popup_layout,
  * @rect_anchor: the point on @anchor_rect to align with @surface's anchor point
  * @surface_anchor: the point on @surface to align with @rect's anchor point
  *
- * Create a popup layout description. Used together with
- * gdk_surface_present_popup() to describe how a popup surface should be placed
- * and behave on-screen.
+ * Create a popup layout description. Used together with gdk_popup_present()
+ * to describe how a popup surface should be placed and behave on-screen.
  *
  * @anchor_rect is relative to the top-left corner of the surface's parent.
- * @rect_anchor and @surface_anchor determine anchor points on @anchor_rect and
- * surface to pin together.
+ * @rect_anchor and @surface_anchor determine anchor points on @anchor_rect
+ * and surface to pin together.
  *
  * The position of @anchor_rect's anchor point can optionally be offset using
  * gdk_popup_layout_set_offset(), which is equivalent to offsetting the
index 75c35d6d50ab54c7b08beffc93fed25928ad13bc..7049d3c560d323a8bc09f5a2cd32e74afff4a187 100644 (file)
@@ -839,8 +839,8 @@ gdk_surface_new_temp (GdkDisplay         *display,
  *
  * Create a new popup surface.
  *
- * The surface will be attached to @parent and can be positioned relative to it
- * using gdk_surface_show_popup() or later using gdk_surface_layout_popup().
+ * The surface will be attached to @parent and can be positioned
+ * relative to it using gdk_popup_present().
  *
  * Returns: (transfer full): a new #GdkSurface
  */
@@ -1021,8 +1021,8 @@ gdk_surface_is_destroyed (GdkSurface *surface)
  * gdk_surface_get_mapped:
  * @surface: a #GdkSurface
  *
- * Checks whether the surface has been mapped (with gdk_surface_show() or
- * gdk_surface_show_unraised()).
+ * Checks whether the surface has been mapped (with gdk_toplevel_present()
+ * or gdk_popup_present()).
  *
  * Returns: %TRUE if the surface is mapped
  **/
@@ -2024,7 +2024,7 @@ gdk_surface_get_root_coords (GdkSurface *surface,
  * and the input region controls where the surface is
  * “clickable”.
  *
- * Use gdk_display_support_input_shapes() to find out if
+ * Use gdk_display_supports_input_shapes() to find out if
  * a particular backend supports input regions.
  */
 void
index f6cac82264edaa152fa42c543e3e38a6a00e88b4..6d19b8dad5262fdc6815ad1c706f6e24bff45f3d 100644 (file)
@@ -881,7 +881,7 @@ gdk_wayland_display_get_startup_notification_id (GdkDisplay  *display)
  *
  * The startup ID is also what is used to signal that the startup is
  * complete (for example, when opening a window or when calling
- * gdk_notify_startup_complete()).
+ * gdk_display_notify_startup_complete()).
  **/
 void
 gdk_wayland_display_set_startup_notification_id (GdkDisplay *display,
index 788d03870b3d911d134d70cd7fc8f3993fce8b1a..0d4f4f97f8e8540e54e19132dead2982f31df8be 100644 (file)
@@ -336,12 +336,10 @@ _gdk_win32_display_init_monitors (GdkWin32Display *win32_display)
  * should be taken.
  *
  * If the windowing system supports it, existing cursors created
- * with gdk_cursor_new(), gdk_cursor_new_for_display() and
- * gdk_cursor_new_from_name() are updated to reflect the theme
- * change. Custom cursors constructed with
- * gdk_cursor_new_from_texture() will have to be handled
- * by the application (GTK+ applications can learn about
- * cursor theme changes by listening for change notification
+ * with gdk_cursor_new_from_name() are updated to reflect the theme
+ * change. Custom cursors constructed with gdk_cursor_new_from_texture()
+ * will have to be handled by the application (GTK applications can
+ * learn about cursor theme changes by listening for change notification
  * for the corresponding #GtkSetting).
  */
 void
index 3e99403954409480616e5ba589f063fd37f5389f..cdf304a393ac36880f0ddcb88db8017130201ad5 100644 (file)
@@ -269,12 +269,10 @@ gdk_x11_cursor_create_for_name (GdkDisplay  *display,
  * should be taken.
  *
  * If the windowing system supports it, existing cursors created
- * with gdk_cursor_new(), gdk_cursor_new_for_display() and
- * gdk_cursor_new_from_name() are updated to reflect the theme
- * change. Custom cursors constructed with
- * gdk_cursor_new_from_texture() will have to be handled
- * by the application (GTK+ applications can learn about
- * cursor theme changes by listening for change notification
+ * with gdk_cursor_new_from_name() are updated to reflect the theme
+ * change. Custom cursors constructed with gdk_cursor_new_from_texture()
+ * will have to be handled by the application (GTK applications can learn
+ * about cursor theme changes by listening for change notification
  * for the corresponding #GtkSetting).
  */
 void
index a2bcefa67dd196378207db03b8742566aed6cf7f..414d6dc63ef050a58fef226d659345e6c4d7b3ab 100644 (file)
@@ -1836,7 +1836,7 @@ gdk_x11_display_has_pending (GdkDisplay *display)
  *
  * Returns the default group leader surface for all toplevel surfaces
  * on @display. This surface is implicitly created by GDK.
- * See gdk_surface_set_group().
+ * See gdk_x11_surface_set_group().
  *
  * Returns: (transfer none): The default group leader surface
  * for @display
@@ -2359,7 +2359,7 @@ gdk_x11_display_get_startup_notification_id (GdkDisplay *display)
  *
  * The startup ID is also what is used to signal that the startup is
  * complete (for example, when opening a window or when calling
- * gdk_notify_startup_complete()).
+ * gdk_display_notify_startup_complete()).
  **/
 void
 gdk_x11_display_set_startup_notification_id (GdkDisplay  *display,
@@ -2542,8 +2542,6 @@ delete_outdated_error_traps (GdkX11Display *display_x11)
  * the application. Use gdk_x11_display_error_trap_pop() or
  * gdk_x11_display_error_trap_pop_ignored()to lift a trap pushed
  * with this function.
- *
- * See also gdk_error_trap_push() to push a trap on all displays.
  */
 void
 gdk_x11_display_error_trap_push (GdkDisplay *display)
@@ -2695,9 +2693,6 @@ gdk_x11_display_set_surface_scale (GdkDisplay *display,
  * If you don’t need to use the return value,
  * gdk_x11_display_error_trap_pop_ignored() would be more efficient.
  *
- * See gdk_error_trap_pop() for the all-displays-at-once
- * equivalent.
- *
  * Returns: X error code or 0 on success
  */
 int
@@ -2716,9 +2711,6 @@ gdk_x11_display_error_trap_pop (GdkDisplay *display)
  * Does not block to see if an error occurred; merely records the
  * range of requests to ignore errors for, and ignores those errors
  * if they arrive asynchronously.
- *
- * See gdk_error_trap_pop_ignored() for the all-displays-at-once
- * equivalent.
  */
 void
 gdk_x11_display_error_trap_pop_ignored (GdkDisplay *display)
index 3227e0bd1ba9c9564c67e54dd1c851e205ded2ff..ae58621116cbf0ef1da454a9f2f5d79df863e243 100644 (file)
@@ -117,6 +117,10 @@ gdk_x11_monitor_class_init (GdkX11MonitorClass *class)
 /**
  * gdk_x11_monitor_get_output:
  * @monitor: (type GdkX11Monitor): a #GdkMonitor
+ *
+ * Returns the XID of the Output corresponding to @monitor.
+ *
+ * Returns: the XID of @monitor
  */
 XID
 gdk_x11_monitor_get_output (GdkMonitor *monitor)
index 26e1b589b5b72e0eee481466e4bf10aa23d00812..606901ac61de3cf0575297d4fd709731a50769c5 100644 (file)
@@ -43,7 +43,7 @@
  * @length: The number of items to transform
  * @list: location to store an  array of strings in
  *    the encoding of the current locale. This array should be
- *    freed using gdk_free_text_list().
+ *    freed using gdk_x11_free_text_list().
  *
  * Convert a text string from the encoding as it is stored
  * in a property into an array of strings in the encoding of